package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IAlertRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 智能告警任务
 */
@Slf4j
@Component
public class AlertJob {

    @Autowired
    private IAlertRuleService alertRuleService;

    /**
     * 设备数据智能告警过滤
     */
    public void deviceDataAlertFilter(){
        log.info("开始执行智能告警任务");
        alertRuleService.alertFilter();
        log.info("结束智能告警任务");
    }
}
